package com.jrx.anytxn.accounting.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@ConfigurationProperties(prefix = "batchconfig.anytxn")
public class AnytxnBatchProperties {
    /**
     * 默认配置
     */
    private DefaultConfig defaultConfig = new DefaultConfig();


    /**
     * 总账流水作业配置
     */
    private DefaultConfig glInterfaceConfig=new DefaultConfig(1000, 0, 32, 50000);

    /**
     * 并账检查作业配置
     */
    private DefaultConfig consolidationCheckConfiguration=new DefaultConfig(2000, 0, 16, 50000);

    /**
     * 并账处理作业配置
     */
    private DefaultConfig billingConfiguration=new DefaultConfig(2000, 0, 16, 50000);

    /**
     * 并账处理作业配置
     */
    private DefaultConfig buildFileConfiguration=new DefaultConfig(2000, 0, 16, 5000);

    /**
     * 产品余额统计配置
     */
    private DefaultConfig productSummeryConfiguration=new DefaultConfig(2000, 0, 16, 5000);

    /**
     * 传票流水文件
     */
    private DefaultConfig voucherFileConfiguration=new DefaultConfig(100, 0, 1, 5000);


    /**
     * 联合贷总账流水作业配置
     */
    private DefaultConfig glInterfaceInvestorConfig=new DefaultConfig(1000, 0, 32, 50000);

    private DefaultConfig fileConfig = new DefaultConfig(1000,0,1,10000);


    public DefaultConfig getFileConfig() {
        return fileConfig;
    }

    public void setFileConfig(DefaultConfig fileConfig) {
        this.fileConfig = fileConfig;
    }


    public DefaultConfig getDefaultConfig() {
        return defaultConfig;
    }

    public void setDefaultConfig(DefaultConfig defaultConfig) {
        this.defaultConfig = defaultConfig;
    }

    public DefaultConfig getGlInterfaceConfig() {
        return glInterfaceConfig;
    }

    public void setGlInterfaceConfig(DefaultConfig glInterfaceConfig) {
        this.glInterfaceConfig = glInterfaceConfig;
    }

    public DefaultConfig getConsolidationCheckConfiguration() {
        return consolidationCheckConfiguration;
    }

    public void setConsolidationCheckConfiguration(DefaultConfig consolidationCheckConfiguration) {
        this.consolidationCheckConfiguration = consolidationCheckConfiguration;
    }

    public DefaultConfig getBillingConfiguration() {
        return billingConfiguration;
    }

    public void setBillingConfiguration(DefaultConfig billingConfiguration) {
        this.billingConfiguration = billingConfiguration;
    }

    public DefaultConfig getBuildFileConfiguration() {
        return buildFileConfiguration;
    }

    public void setBuildFileConfiguration(DefaultConfig buildFileConfiguration) {
        this.buildFileConfiguration = buildFileConfiguration;
    }

    public DefaultConfig getProductSummeryConfiguration() {
        return productSummeryConfiguration;
    }

    public void setProductSummeryConfiguration(DefaultConfig productSummeryConfiguration) {
        this.productSummeryConfiguration = productSummeryConfiguration;
    }

    public DefaultConfig getVoucherFileConfiguration() {
        return voucherFileConfiguration;
    }

    public void setVoucherFileConfiguration(DefaultConfig voucherFileConfiguration) {
        this.voucherFileConfiguration = voucherFileConfiguration;
    }

    public DefaultConfig getGlInterfaceInvestorConfig() {
        return glInterfaceInvestorConfig;
    }

    public void setGlInterfaceInvestorConfig(DefaultConfig glInterfaceInvestorConfig) {
        this.glInterfaceInvestorConfig = glInterfaceInvestorConfig;
    }
}
